package com.wkbb.basic.service;

import com.wkbb.basic.model.UserFace;
import com.wkbb.basic.model.UserFacePersonConfig;
import com.wkbb.basic.model.YoutuPerson;
import com.wkbb.common.base.BaseService;
import com.wkbb.common.dto.basic.UserDto;
import com.wkbb.common.dto.basic.UserFaceDto;

import java.util.List;
import java.util.Map;

/**
 * @author luowenyan
 * @version V1.0
 * @interfaceName UserFaceService
 * @description TODO
 * @date 2019/8/26 11:09
 */
public interface UserFaceService extends BaseService<UserFace> {

    List<UserFaceDto> getUserFaceList(Long orgId, List<Long> classIds);

    List<UserFaceDto> getUserFaceImgByOrg(Long orgId);
	
	void repairYouTu();

    void deleteFaceData(Long orgId);

    List<YoutuPerson> getFaceData(Long orgId);

    List<UserFacePersonConfig> getUserFacePersonConfigList(Map<String, Object> params);

    void saveUserFacePersonConfig(List<UserFacePersonConfig> userFacePersonConfigList);

    /**
     * 根据学校用户查询人脸信息
     * @param params 机构用户ID
     * @return 人脸信息
     */
    UserDto getUserByOrgPerson(Map<String,Object> params);

    Boolean addUserFace(String picUrlA, Long orgId, Long accountId, Long userId, Integer type, Short similar);

    Boolean modifyFace(String personId, Long orgId, String picUrlA, Integer type, Short similar, Long userId);

    String deleteFace(String personId, Long orgId);

    List<UserFaceDto> getUserFaceListByUpdateTime(String endTime, String beginTime);
}
